package com.shb.game;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.wooboo.adlib_android.AdListener;
import com.wooboo.adlib_android.FullAdView;

public class SpanshActivity extends Activity implements AdListener {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		FullAdView ad = new FullAdView(this, false, null);
		setContentView(ad);
		ad.setAdListener(this);
	}

	@Override
	public void onFailedToReceiveAd(Object arg0) {
		startActivity(new Intent(this, MainActivity.class));
		finish();
	}

	@Override
	public void onPlayFinish() {
		startActivity(new Intent(this, MainActivity.class));
		finish();
	}

	@Override
	public void onReceiveAd(Object arg0) {
	}

}
